import os
from celery import Celery
from django.conf import settings

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django1025.settings')

app=Celery('mywork',broker='redis://127.0.0.1:6379/5',
           backend='redis://127.0.0.1:6379/4')

app.autodiscover_tasks(settings.INSTALLED_APPS)



